import * as React from "react";
import { inject, observer } from "mobx-react";
import { USER } from "../mobx/Stores";
import { User } from "../mobx/data/User";

interface Iprops {
  user?: User;
}

/**
 * 描述：
 *  类组件
 * @author sunshixiong
 * @date 2019/6/27-15:44
 */
@inject(USER)
@observer
class ClassCom extends React.Component<Iprops> {
  public render() {
    return <React.Fragment>{this.props.user!.user}</React.Fragment>;
  }
}

export default ClassCom;
